package com.acme.task4;

public class Task4Arrays {
	public static void main(String[] args) {

		int array[] = new int[10];
		array[0] = 3;
		array[1] = 7;
		array[2] = 3;
		array[3] = 9;
		array[4] = 7;
		array[5] = 3;
		array[6] = 9;
		array[7] = 3;
		array[8] = 9;
		array[9] = 7;
		
		int threeNumbers = 0;
		int sevenNumbers = 0;
		int nineNumbers = 0;
		
		//cycle for search count of values 3,7,9
		for(int i: array){
			if(i ==3){
				threeNumbers++;
			}else if(i == 7){
				sevenNumbers++;
			}else{ 
				nineNumbers++;
			}
		}
		
		System.out.println("Number of 3: " + threeNumbers);
		System.out.println("Number of 7: " + sevenNumbers);
		System.out.println("Number of 9: " + nineNumbers);
	}
}
